package play.functions

fun main() {
    operator fun Int.times(str: String) = str.repeat(this)
    operator fun Int.plus(str: String) = "$this:$str"
    operator fun Int.not() = this*(this-1)
    println(2 * "Bye ")
    println(2 + "Bye ")
    println(!20)

    operator fun String.get(range: IntRange) = substring(range)
    val str = "Always forgive your enemies; nothing annoys them so much."
    println(str[0..14])
}